package com.why.service.impl;

import com.why.common.utils.PageUtils;
import com.why.common.utils.Query;
import com.why.dao.UserAddrDao;
import com.why.entity.UserAddrEntity;
import com.why.service.UserAddrService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("userAddrService")
public class UserAddrServiceImpl extends ServiceImpl<UserAddrDao, UserAddrEntity> implements UserAddrService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserAddrEntity> page = this.page(
                new Query<UserAddrEntity>().getPage(params),
                new QueryWrapper<UserAddrEntity>()
        );

        return new PageUtils(page);
    }

}